package Day9Zuoye.CPU;

public class Computer {
    CPU cpu;
    Keyboard keyboard;
    Mouse mouse;


    public Computer(CPU cpu,Keyboard keyboard,Mouse mouse) {
        this.cpu = cpu;
        this.keyboard=keyboard;
        this.mouse=mouse;
    }

    public void show(){
        System.out.println("计算机信息如下:");
        System.out.print("CPU的品牌是:");
        cpu.getCPUbrand();
        System.out.print("主频是:");
        cpu.getCPUGHZ();
        System.out.println("鼠标是:");
        mouse.brand();
        System.out.println("键盘是:");
        keyboard.brand();
    }
}
